package pers.vic.blog.module.api.task.job;


import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;
import pers.vic.blog.module.api.service.BlogArticleFileService;

/**
 * @description: 文章归档统计定时器
 * @author Vic.xu
 * @date: 2020/9/7 0007 9:51
 */
@Component
@DisallowConcurrentExecution
public class ArticleFileJob extends QuartzJobBean {

    @Autowired
    BlogArticleFileService blogArticleFileService;

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        blogArticleFileService.statisticsJob();
    }
}
